package com.service;

import com.dao.UserPrivacyAlterDAO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service
public class UserPrivacyAlterService {
    /**
     * @program: project
     *
     * @description: 项目：用户个人信息修改
     *
     * @author: 周义翔
     *
     * @create: 2019-11-21 17:10
     **/
    @Autowired
    private UserPrivacyAlterDAO Userdao;

    /**
     *
     *
     * @param map 个人隐私
     * @param userid 是哪个用户
     * @return 返回布尔值判断有没有修改成功
     */
    public boolean UserPrivacyAlter(Map map, Long userid){
       boolean p ;
       int f = Userdao.UserPrivacyAlter(map,userid);
       if (f>0){
            return p=true;
        }
        return p=false;

    }


}
